#!/usr/bin/env node
const { Transform } = require ('stream');
const stdin = process.stdin,
      stdout = process.stdout;
//stdin.setEncoding('utf8');
//stdin.on('data',(data)=>{
 // stdout.write(data.toString('utf8'));
//})
let tf = new Transform();
//实例化对象

tf._transform = function(chunk,encoding,callback){
  this.push(chunk.toString().toUpperCase());
  callback();
}
stdin.pipe(tf).pipe(stdout);
